package com.motu.vertx.module.utility.logsdk;

import io.vertx.core.json.JsonObject;

public class ChargePackage extends ChargePackageModel {
    public static final int TYPE_REYUN = 1;//热云
    public static final int TYPE_TOUTIAO = 2;//头条
    public static final int TYPE_ADWORDS = 3;//adwords
    public static final int TYPE_ADJUST = 4;//adjust
    public static final int TYPE_SWITCH_PAY = 5;//切支付
    public static final int TYPE_MOB_PUSH = 6;//系统推送
	public static final int TYPE_COLLCTION_AD = 7;//motuCollection 广告中台
	public static final int TYPE_COLLCTION_GAME = 8;//motuCollection 数据中台

    public static final String PLATFORM_TYPE_APPSTORE = "appstore";
    public static final String PLATFORM_TYPE_ANDROID = "android";

    public ChargePackage(JsonObject obj) {
        super(obj);
    }

    public boolean hasReyunKey() {
        return reyunKey != null && !reyunKey.isEmpty();
    }

    public boolean hasTapdbKey() {
        return tapdbKey != null && !tapdbKey.isEmpty();
    }

    public boolean isAndroidPackage() {
        return paymentType.equalsIgnoreCase(PLATFORM_TYPE_ANDROID);
    }

    public boolean isAppstorePackage() {
        return paymentType.equalsIgnoreCase(PLATFORM_TYPE_APPSTORE);
    }
}
